﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace XMK.AuthModule
{

    public class AuthSection : ConfigurationSection
    {
        /// <summary>
        /// 失败跳转地址
        /// </summary>
        [ConfigurationProperty("failurl")]
        public string FailUrl
        {
            get { return this["failurl"].ToString(); }
            set { this["failurl"] = value; }
        }

        /// <summary>
        /// 需要认证地址列表
        /// </summary>
        [ConfigurationProperty("authPath",IsDefaultCollection=true)]
        public AuthPathConnection AuthPathList {
            get { return (AuthPathConnection)this["authPath"]??new AuthPathConnection(); }
        }
    }
}
